<?php
$login = $_POST['login'];
$password = $_POST['password'];

if ($login == 'admin' && $password == 'admin') {
    session_start();
    $_SESSION['session_user'] = $login;
    header('Location: members.php?user='.$_SESSION['session_user']);
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <title>Авторизация</title>
    <link href="../css/sro.css" rel="stylesheet" type="text/css">
    <script src="../js/Event.js" language="javascript"></script>
    <script src="../js/modificatMenu.js" language="javascript"></script>
    <script src="../js/resize.js" language="javascript"></script>

    <link rel="stylesheet" type="text/css" href="../css/jquery.css" media="screen">
    <script type="text/javascript" src="../js/jquery-1.js"></script>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery_002.js"></script>

</head>


<body>
<div id="container">
<?php
//$SELECTED_MENU="menu-1";
//include "banner.php"
?>
    <div class="workzone">
        <div class="login_div">
            <form action="login.php" method="post">
            <table width="300">
                <tr>
                    <th>логин</th>
                    <td>
                        <input name="login">
                    </td>
                </tr>
                <tr>
                    <th>пароль</th>
                    <td>
                        <input name="password">
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Вход" align="middle">
                    </td>
                </tr>
            </table>
            </form>
        </div>

    <div class="clear"></div>
    <div class="footer">
        <!--TODO: add footer-->
    </div>

</div>


</body>
</html>